package com.shxy.dao;

import com.shxy.entity.Employee;
import com.shxy.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface UserDao extends JpaRepository<User, String> {
    /**
     * 根据员工获取员工信息
     * @param employee
     * @return
     */
    User getUserByEmployee(Employee employee);
}
